<template>
  <view>
    <input type="text" v-model="value" @keydown.enter="handleEnter">
  </view>
</template>

<script>
  export default {
    data() {
      return {
        list: [],
        value: '我'
      }
    },
    onLoad() {
      this.handleEnter()
    },
    methods: {
      async handleEnter() {
        const resp = await uniCloud.callFunction({
          name: 'getMyListBySearch',
          data: {
            value: this.value
          }
        })
        console.log(resp)
      }
    }
  }
</script>

<style>

</style>
